package com.kim.logs.context;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Deacription TODO
 * @Author jianhua.hong
 * @Date 2020/4/3 9:37
 **/
@Slf4j
@Configuration
public class LogHandlerConfig {
    @Bean
    public RequestLogHandler requestLogHandler() {
        log.info("RequestLogHandler component init");
        return new RequestLogHandler();
    }
    @Bean
    public ServiceLogHandler serviceLogHandler() {
        log.info("ServiceLogHandler component init");
        return new ServiceLogHandler();
    }
}
